import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class LoadingWidget extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
      child: Padding(
        padding: EdgeInsets.all(10),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Container(
              width: 18,
              height: 18,
              margin: EdgeInsets.fromLTRB(0,5,10,0),
              child: CircularProgressIndicator(
                strokeWidth: 2.5,
              ),
            ),
            Text("加载中...",
            style: TextStyle(fontSize: 16.0),
            ),
          ],
        ),
      ),
    );
  }

}